import 'package:flutter/material.dart';
import 'package:flutter_aggregate/model/onlineOrder/constants.dart';
import 'package:flutter_svg/flutter_svg.dart';

AppBar onlineHomeAppBar(BuildContext context) {
    return AppBar(
    centerTitle: true,
    backgroundColor: Colors.white,
    elevation: 0,
    leading: IconButton(
      onPressed: () {}, 
      icon: SvgPicture.asset('assets/online/icons/menu.svg')
    ),
    title: RichText(
      text: TextSpan(
        style: Theme.of(context).textTheme.titleLarge!.copyWith(
          fontWeight: FontWeight.bold
        ),
        children: const [
          TextSpan(
            text: 'Punk',
            style: TextStyle(
              color: onlineOrderKSecondaryColor
            )
          ),
          TextSpan(
            text: 'Food',
            style: TextStyle(
              color: onlineOrderKPrimaryColor
            )
          )
        ]
      )
    ),
    actions: [
      IconButton(
        onPressed: () {}, 
        icon: SvgPicture.asset('assets/online/icons/notification.svg')
      )
    ],
  );
}